<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //flat 平;
        //将多维数组转化为低位数组;
        //const arr = [1,2,3,4,[5,6]];
        //console.log(arr.flat());
        //flatMap;
        const arr = [1,2,3,4];
        const result = arr.map(item => item * 10);
        console.log(result);
    </script>
</body>
</html>